﻿using com.guojin.core.io.message;
using com.guojin.core.io;
using System;

namespace com.guojin.mj.net.message.login
{

    public class CheckNumberInfo : Message
    {
        public static int TYPE = 7;
        public static int ID = 77;

        /**姓名*/
        private string username;
        /**编号*/
        private int id;
        /**资产*/
        private int gold;

        public string Username
        {
            get
            {
                return username;
            }

            set
            {
                username = value;
            }
        }

        public int Id
        {
            get
            {
                return id;
            }

            set
            {
                id = value;
            }
        }

        public int Gold
        {
            get
            {
                return gold;
            }

            set
            {
                gold = value;
            }
        }

        public void decode(Input _in)
        {
            username = _in.readString();
            id = _in.readInt();
            gold = _in.readInt();
        }

        public void encode(Output _out)
        {
            
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "";
        }
    }
}
